﻿using System;

namespace dbapi_lib.API.Exceptions
{
    class DAOException : System.Exception
    {
        /// <summary>
        /// Default constructor
        /// </summary>
        public DAOException(): base()  {}

        /// <summary>
        /// Set the given message as the exception's message
        /// </summary>
        /// <param name="msg">Exception's message</param>
        public DAOException(String msg) : base(msg) {}

        /// <summary>
        /// Format the exception's message as:
        /// </summary>
        /// <param name="msg">Exception's message</param>
        /// <param name="causedBy">Other exception object that caused this exception (if any)</param>
        public DAOException(String msg, System.Exception causedBy):base(msg, causedBy) {}
    }
}
